<div style="margin: 15px 0px 0px 15px">
	<h3>Thêm mới quảng cáo</h3><hr />
	<div style="margin-top: 30px;  margin-left: 60px;">
	<div style="background: yellow;">
		<?php echo validation_errors();?>	
	</div>
		<?php $attrs = array('class'=>'frm_update_customer', 'id'=>'frm_update_customer')?>
		<?php echo form_open_multipart(base_url().'index.php/advertisement/add', $attrs)?>
		<table cellpadding="10" >
			<tr>
				<td width="150"><?php echo form_label('Tên quảng cáo')?></td>
				<td><?php echo form_input(array('name'=>'name', 'size'=>'30'))?></td>
			</tr>
			<tr>
				<td><?php echo form_label('Loại')?></td>
				
				<td>
					<hr />
					<input type="radio" name="type" value="banner"  checked/> Banner
					<br><br>
					Image: <input type="file" name="image" size="20" />
					<br><br>
					Link:   <input type = "text" name = "link" />
				
					
					<hr />
					<input type="radio" name="type" value="micro"  />Micro
					<br />
					<?php echo form_textarea(array('name'=>'source','id' => 'micro','size'=>'30'))?>
					<hr />
				</td>
			</tr>
			<tr>
				<td><?php echo form_label('Mô tả')?></td>
				<td><?php echo form_textarea(array('name'=>'description','size'=>'30'))?></td>
			</tr>
			<tr>
				<td><?php echo form_label('Vị trí')?></td>
				<td>
					<?php $positions = array('Trái'=>'Trái', 'Phải'=>'Phải');?>
					<?php echo form_dropdown('position',$positions)?>
			</tr>
			<tr>
				<td><?php echo form_label('Hoạt động')?></td>
				<td>
					<?php $status = array('Có'=>'Có', 'Không'=>'Không');?>
					<?php echo form_dropdown('status',$status)?>
			</tr>
			<tr>
				<td></td>
				<td>
					<?php echo form_submit(array('name'=>'submit','value'=>'Thêm mới'))?>
				</td>
			</tr>
		</table>
	</form>
	</div>
</div>